package cn.com.org.service;

import org.springframework.stereotype.Component;

import cn.com.bean.Users;
import cn.com.common.EncryptUtil;

@SuppressWarnings("hiding")
@Component
public class UserService extends ServiceBaseImpl {

	public UserService(){}
	public Boolean validateUser(String uname,String upwd){
		 upwd = EncryptUtil.EncryptMd5OrSHA(upwd, "MD5");
			Boolean result = isExists("username", uname,
					"password", upwd, Users.class);
		 return result;
	}
}
